package com.bd.bbd.dao;

import com.bd.bbd.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
     public User getUserByMessage(@Param("username") String username,@Param("password") String password);
     public List<User> getAllUser(@Param("username")String username,@Param("pageStart")int pageStart,@Param("pageSize")int pageSize);
     public int getUserCounts(@Param("username")String username);

}
